import request from '@/utils/request'

// export function getOneCate(data) {
//   return request({
//     url: '/v1/frontend/patent/fu',
//     method: 'post',
//     data
//   })
// }

export function iitigationDownload(data) {
  return request({
    url: '/v1/frontend/iitigation/download',
     method: 'post',
     data
  })
}




export function trendLaw(data) {
  return request({
    url: '/v1/frontend/trend/trend_law',
     method: 'post',
     data
  })
}


export function trendPatent(data) {
  return request({
    url: '/v1/frontend/trend/trend_patent',
     method: 'post',
     data
  })
}



export function userSave(data) {
  return request({
    url: '/v1/frontend/user/save',
     method: 'post',
     data
  })
}


export function trendCompany(data) {
  return request({
    url: '/v1/frontend/trend/trend_company',
     method: 'post',
     data
  })
}

export function trendTimes(data) {
  return request({
    url: '/v1/frontend/trend/trend_times',
     method: 'post',
     data
  })
}



export function visitorLogin(data) {
  return request({
    url: '/v1/visitor/login',
     method: 'post',
     data
  })
}

export function delVisitorInfo(data) {
  return request({
    url: '/v1/frontend/visitor/del_visitor',
     method: 'post',
     data
  })
}

export function getVisitorInfo(data) {
  return request({
    url: 'v1/frontend/visitor/edit_info',
     method: 'post',
     data
  })
}

export function editVisitor(data) {
  return request({
    url: '/v1/frontend/visitor/edit_visitor',
     method: 'post',
     data
  })
}

export function addVisitor(data) {
  return request({
    url: '/v1/frontend/visitor/add_visitor',
     method: 'post',
     data
  })
}

export function visitorIndex(data) {
  return request({
    url: '/v1/frontend/visitor/index',
     method: 'post',
     data
  })
}

export function frontendContent(data) {
  return request({
    url: '/v1/frontend/ask/content',
     method: 'post',
     data
  })
}


export function defaultCate(data) {
  return request({
    url: '/v1/frontend/patent/default_cate',
     method: 'post',
     data
  })
}


export function patentExport(data) {
  return request({
    url: '/v1/frontend/user/patent_export',
    method: 'post',
    data,
    responseType: 'blob'
  })
}

export function delYan(data) {
  return request({
    url: '/v1/frontend/patent/del_yan',
    method: 'post',
    data
  })
}

export function getOneCate(data) {
  return request({
    url: '/v1/frontend/patent/get-one-cate',
    method: 'post',
    data
  })
}

export function patentCollage(data) {
  return request({
    url: '/v1/frontend/patent/collage',
    method: 'post',
    data
  })
}

export function updatePatentCategory(data) {
  return request({
    url: '/v1/frontend/patent/update-patent-category',
    method: 'post',
    data
  })
}

export function patentCreateYan(data) {
  return request({
    url: '/v1/frontend/patent/create-yan',
    method: 'post',
    data
  })
}

export function patentDelete(data) {
  return request({
    url: '/v1/frontend/patent/delete',
    method: 'post',
    data
  })
}

export function patentUpdate(data) {
  return request({
    url: '/v1/frontend/patent/update',
    method: 'post',
    data
  })
}

export function getChild(data) {
  return request({
    url: '/v1/frontend/patent/get-child',
    method: 'post',
    data
  })
}

export function patentCate(data) {
  return request({
    url: '/v1/frontend/patent/cate',
    method: 'post',
    data
  })
}

export function patentCore(data) {
  return request({
    url: '/v1/frontend/patent/core',
    method: 'post',
    data
  })
}

export function IitigationDetail(data) {
  return request({
    url: '/v1/frontend/Iitigation/detail',
    method: 'post',
    data
  })
}

export function IitigationCollection(data) {
  return request({
    url: '/v1/frontend/Iitigation/shoucang',
    method: 'post',
    data
  })
}

export function IitigationSearch(data) {
  return request({
    url: '/v1/frontend/Iitigation/search',
    method: 'post',
    data
  })
}

export function Iitigation(data) {
  return request({
    url: '/v1/frontend/Iitigation/index',
    method: 'post',
    data
  })
}

export function patentGet(data) {
  return request({
    url: '/v1/frontend/patent/cate',
    method: 'post',
    data
  })
}

export function patentCreate(data) {
  return request({
    url: '/v1/frontend/patent/create',
    method: 'post',
    data
  })
}

export function insert(data) {
  return request({
    url: '/v1/frontend/patent/insert',
    method: 'post',
    data
  })
}

export function forget(data) {
  return request({
    url: '/v1/user/forget',
    method: 'post',
    data
  })
}

export function getSmsCode(data) {
  return request({
    url: '/v1/user/send-code',
    method: 'post',
    data
  })
}

export function expression(data) {
  return request({
    url: '/v1/search/expression',
    method: 'post',
    data
  })
}


export function intelligence(data) {
  return request({
    url: '/v1/search/intelligence',
    method: 'post',
    data
  })
}

export function getExpression(data) {
  return request({
    url: '/v1/search/get-expression',
    method: 'post',
    data
  })
}

export function fields(data) {
  return request({
    url: '/v1/search/fields',
    method: 'post',
    data
  })
}

export function register(data) {
  return request({
    url: '/v1/user/register',
    method: 'post',
    data
  })
}

// 登录
export function login(data) {
  return request({
    url: '/v1/user/login',
    method: 'post',
    data
  })
}

// 获取用户信息
export function getInfo(data) {
  return request({
    url: '/v1/user/info',
    method: 'post',
    data
  })
}
